package com.cjm.one.coupon.service;


import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.cjm.one.model.coupon.dto.CouponInfoDto;
import com.cjm.one.model.coupon.entity.CouponInfo;
import com.cjm.one.model.coupon.vo.CouponInfoVo;

/**
* @author 29289
* @description 针对表【coupon_info(优惠券信息)】的数据库操作Service
* @createDate 2024-09-05 15:55:46
*/
public interface CouponInfoService extends IService<CouponInfo> {

    Page<CouponInfo> getCouponInfoPage(Long current, Long size, Integer rangeType, String couponName, Integer status);

    Boolean SaveCoupon(CouponInfoDto couponInfoDto);

    Boolean UpdateCoupon(CouponInfoDto couponInfoDto);

    Boolean DeleteCoupon(Long id);

    CouponInfoVo getCouponById(Long id);

    Page<CouponInfoVo> getCouponInfoAppPage(Long current, Long size, Integer rangeType, Long customerId);
}
